package com.agile.leetcode.jvm.oom;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author chenzhangkun
 * @ClassName OOMExist
 * @description: TODO
 * @date 2025年07月31日
 */
public class OOMExist {
    public static void main(String[] args) {
        List<byte[]> list = new ArrayList<>();
        for (; ; ) {
            System.out.println(new Date() + " OOM Thread is running!!!");
            byte[] b = new byte[1024 * 1024 * 1];
            list.add(b);
        }
    }
}
